package
{
	import alternativa.types.Texture;
	import flash.display.BlendMode;
	import flash.display.Bitmap;

	public class LoaderTexture
	{
		[Embed(source="images/bouton0.jpg")] private static const bmp0:Class;
		private static const boutonTexture0:Texture = new Texture(new bmp0().bitmapData, "bouton0.jpg");
		[Embed(source="images/bouton1.jpg")] private static const bmp1:Class;
		private static const boutonTexture1:Texture = new Texture(new bmp1().bitmapData, "bouton1.jpg");
		[Embed(source="images/bouton2.jpg")] private static const bmp2:Class;
		private static const boutonTexture2:Texture = new Texture(new bmp2().bitmapData, "bouton2.jpg");
		[Embed(source="images/bouton3.jpg")] private static const bmp3:Class;
		private static const boutonTexture3:Texture = new Texture(new bmp3().bitmapData, "bouton3.jpg");
		[Embed(source="images/bouton4.jpg")] private static const bmp4:Class;
		private static const boutonTexture4:Texture = new Texture(new bmp4().bitmapData, "bouton4.jpg");
		[Embed(source="images/bouton5.jpg")] private static const bmp5:Class;
		private static const boutonTexture5:Texture = new Texture(new bmp5().bitmapData, "bouton5.jpg");

		[Embed(source="images/bouton0a.jpg")] private static const bmp0a:Class;
		private static const boutonTexture10:Texture = new Texture(new bmp0a().bitmapData, "bouton0a.jpg");
		[Embed(source="images/bouton1a.jpg")] private static const bmp1a:Class;
		private static const boutonTexture11:Texture = new Texture(new bmp1a().bitmapData, "bouton1a.jpg");
		[Embed(source="images/bouton2a.jpg")] private static const bmp2a:Class;
		private static const boutonTexture12:Texture = new Texture(new bmp2a().bitmapData, "bouton2a.jpg");
		[Embed(source="images/bouton3a.jpg")] private static const bmp3a:Class;
		private static const boutonTexture13:Texture = new Texture(new bmp3a().bitmapData, "bouton3a.jpg");
		[Embed(source="images/bouton4a.jpg")] private static const bmp4a:Class;
		private static const boutonTexture14:Texture = new Texture(new bmp4a().bitmapData, "bouton4a.jpg");
		[Embed(source="images/bouton5a.jpg")] private static const bmp5a:Class;
		private static const boutonTexture15:Texture = new Texture(new bmp5a().bitmapData, "bouton5a.jpg");

		[Embed(source="images/murs_b.jpg")] private static const bmpMur:Class;
		private static const murTexture:Texture = new Texture(new bmpMur().bitmapData, "murs_b.jpg");
		[Embed(source="images/plafond.jpg")] private static const bmpPlafond:Class;
		private static const plafondTexture:Texture = new Texture(new bmpPlafond().bitmapData, "plafond.jpg");
		[Embed(source="images/portefermee1.jpg")] private static const bmpFermee1:Class;
		private static const fermeeTexture1:Texture = new Texture(new bmpFermee1().bitmapData, "fermee1.jpg");
		[Embed(source="images/portefermee2.jpg")] private static const bmpFermee2:Class;
		private static const fermeeTexture2:Texture = new Texture(new bmpFermee2().bitmapData, "fermee2.jpg");
		
		
		public function LoaderTexture():void
		{

		}

		public static function getTextureBouton(num:int):Texture{
			var texture:Texture;
			switch(num)
			{
				case 0:
					texture=boutonTexture0;
					break;
				case 1:
					texture=boutonTexture1;
					break;
				case 2:
					texture=boutonTexture2;
					break;
				case 3:
					texture=boutonTexture3;
					break;
				case 4:
					texture=boutonTexture4;
					break;
				case 5:
					texture=boutonTexture5;
					break;
				case 10:
					texture=boutonTexture10;
					break;
				case 11:
					texture=boutonTexture11;
					break;
				case 12:
					texture=boutonTexture12;
					break;
				case 13:
					texture=boutonTexture13;
					break;
				case 14:
					texture=boutonTexture14;
					break;
				case 15:
					texture=boutonTexture15;
					break;
			}
			return texture;
		}
		
		public static function getTexture(str:String):Texture{
			var texture:Texture;
			switch(str)
			{
				case "plafond":
					texture=plafondTexture;
					break;
				case "mur":
					texture=murTexture;
					break;
				case "fermee1":
					texture=fermeeTexture1;
					break;
				case "fermee2":
					texture=fermeeTexture2;
					break;
			}
			return texture;
		}
	}
}